﻿using AutoMapper;
using LiveShopvnext.Books;
using LiveShopvnext.CommoditySpecificas;
using LiveShopvnext.CommodityTypes;
using LiveShopvnext.CommodOrders;
using LiveShopvnext.Commods;
using LiveShopvnext.UserOrders;

namespace LiveShopvnext
{
    public class LiveShopvnextApplicationAutoMapperProfile : Profile
    {
        public LiveShopvnextApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here.
             * Alternatively, you can split your mapping configurations
             * into multiple profile classes for a better organization. */
            CreateMap<Book, BookDto>();
            CreateMap<CreateUpdateBookDto, Book>();

            CreateMap<CommodInfo, CommodInfoDTO>();
            CreateMap<CreateUpdateCommodDto, CommodInfo>();

            CreateMap<CommodityType, CommodityTypeDTO>();
            CreateMap<CreateUpdateCommodityTypeDto, CommodityType>();

            CreateMap<CommodSpecifica, CommodSpecificaDTO>();
            CreateMap<CreateUpdateCommodSpecificaDto, CommodSpecifica>();

            CreateMap<FreeActions, FreeActionDTO>();
            CreateMap<CreateUpdateFreeActionDto, FreeActions>();

            CreateMap<CommodOrder, CommodOrdersDTO>();
            CreateMap<CreateUpdateCommodOrdersDto, CommodOrder>();

            CreateMap<UserOrder, UserOrdersDTO>();
            CreateMap<CreateUpdateUserOrdersDto, UserOrder>();


        }
    }
}
